net: Unregister net_default_ip and net_default_mac variables hooks on unload
authorB Horn <b@horn.uk>
Thu, 28 Nov 2024 04:05:04 +0000 (04:05 +0000)
committerMiao Wang <shankerwangmiao@gmail.com>
Sun, 15 Feb 2026 13:50:20 +0000 (13:50 +0000)
commit9e2bb4defa511673aaa9ee0dd3a07fa6b535dd29
tree7e5df5e2df4b756b5f36f8bdb667f3ec4bab2eef
parent6be1bcfb1b7160fb51c9b3efe18427f1d456d967
net: Unregister net_default_ip and net_default_mac variables hooks on unload

The net module is a dependency of normal. So, it shouldn't be possible
to unload the net. Though unregister variables hooks as a precaution.
It also gets in line with unregistering the other net module hooks.

Signed-off-by: B Horn <b@horn.uk>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Gbp-Pq: Topic cve-2025-jan
Gbp-Pq: Name net-Unregister-net_default_ip-and-net_default_mac-variabl.patch
grub-core/net/net.c